<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="style.css" />
    <style>
      /* body{
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100vh;
      width:100vw;
      overflow: hidden;
    } */

      svg {
        border: 2px solid black;
      }
    </style>
  </head>

  <body>
    <svg width="938" height="800" viewBox="0 0 938 800" fill="none" xmlns="http://www.w3.org/2000/svg">
      <rect width="938" height="378" fill="url(#paint0_linear_2_5)" />
      <rect y="400" width="200" height="200" fill="url(#paint0_linear_2_5)" />

      <!-- defs 定义渐变 -->
      <defs>
        <!-- gradientUnits="userSpaceOnUse"  应用到svg整体坐标系  -->
        <!-- objectBoundingBox 应用到渐变对象的坐标系 -->
        <linearGradient id="paint0_linear_2_5" x1="0%" y1="0%" x2="0%" y2="100%" gradientUnits="userSpaceOnUse">
          <!-- offset设置颜色色标的位置 stop-color具体颜色色值 stop-opacity设置颜色透明度 -->
          <stop stop-color="#FFBD13" />
          <stop offset="1" stop-color="#7000FF" />
        </linearGradient>
      </defs>
    </svg>
  </body>
</html>
